package com.abc.invoke.client;

import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

import com.abc.invoke.bean.User;
import com.abc.invoke.client.config.InvokerClientConfig;
import com.abc.invoke.services.interfaces.AccessControlInterface;
import com.abc.invoke.services.interfaces.UserInterface;

public class Test {
	
   public static void main(String[] args) {
       
	   ApplicationContext ac = new AnnotationConfigApplicationContext(InvokerClientConfig.class);
	   AccessControlInterface service = (AccessControlInterface)ac.getBean("accessService");
	   
       User u = service.getUserbyName("Alvis");
       System.out.println(u);
       System.out.println(service.getSserverTime());
   }
}
